package com.lhy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 汪
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Drugs {
    private Integer drugsId;
    private String name;
    private String price;
    private double purchasePrice;
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date introduceDate;
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date productDate;
    private Integer num;
    private String qualityPeriod;
    private String supplyUnit;
    private String productUnit;
    private String oriFilename;
    private String realFilename;


}
